#pragma once

#define SAFE_DELETE(x) if(x){ delete x; x = NULL; }
#define SAFE_DELETE_ARRAY(x) if(x){ delete[] x; }
#define SAFE_RELEASE(x) if(x){ x->Release(); x = NULL; } 